<?php

function set_aqua($id){
global $YUI_ROOT;
echo "<style type='text/css'>
			/* Aqua Panel Skin CSS */
			#".$id."_c.yui-panel-container.shadow .underlay { background-color:#999; }
			#".$id.".yui-panel { border:none; overflow:visible; background-color:transparent; }

			/* Apply styles to the close icon to anchor it to the left side of the header */
			#".$id.".yui-panel .container-close { top:3px; left:4px; height:18px; width:17px; background-image:url(".$YUI_ROOT."assets/img/aqua-hd-close.gif);}
			#".$id.".yui-panel .container-close:hover { background-image:url(".$YUI_ROOT."assets/img/aqua-hd-close-over.gif); }

			/* Style the header and apply the rounded corners, center the text */
			#".$id.".yui-panel .hd { padding:0; border:none; background:transparent url(".$YUI_ROOT."assets/img/aqua-hd-bg.gif); color:#000; height:22px; margin-left:7px; margin-right:7px; text-align:center; overflow:visible; }
			#".$id.".yui-panel .hd span { vertical-align:middle; line-height:22px; }
			#".$id.".yui-panel .hd .tl { width:7px; height:22px; top:0; left:0; background:transparent url(".$YUI_ROOT."assets/img/aqua-hd-lt.gif); position:absolute; }
			#".$id.".yui-panel .hd .tr { width:7px; height:22px; top:0; right:0; background:transparent url(".$YUI_ROOT."assets/img/aqua-hd-rt.gif); position:absolute; }

			/* Style the body and footer */
			#".$id.".yui-panel .bd { overflow:hidden; padding:4px; border:1px solid #aeaeae; background-color:#FFF; }
			#".$id.".yui-panel .ft { font-size:100%; color:#666; padding:2px; overflow:hidden; border:1px solid #aeaeae; border-top:none; background-color:#dfdfdf; }	
</style>";
}

function set_winxp($id){
global $YUI_ROOT;
echo " 

<style>
/* XP Panel Skin CSS */
			#".$id."_c.yui-panel-container.shadow .underlay { background-color:#999; }

			/* Apply the border to the right side */
			#".$id.".yui-panel { border:none; overflow:visible; background:transparent url(".$YUI_ROOT."assets/img/xp-brdr-rt.gif) no-repeat top right; }

			/* Style the close icon */
			#".$id.".yui-panel .container-close { top:5px; right:8px; height:21px; width:21px; background-image:url(".$YUI_ROOT."assets/img/xp-close.gif);}

			/* Style the header with its associated corners */
			#".$id.".yui-panel .hd { padding:0; border:none; background:transparent url(".$YUI_ROOT."assets/img/xp-hd.gif); color:#FFF; height:30px; margin-left:8px; margin-right:8px; text-align:left; vertical-align:middle; overflow:visible; }
			#".$id.".yui-panel .hd span { line-height:30px; vertical-align:middle; }
			#".$id.".yui-panel .hd .tl { width:8px;height:29px; top:1px;left:0; background:transparent url(".$YUI_ROOT."assets/img/xp-tl.gif); position:absolute; }
			#".$id.".yui-panel .hd .tr { width:8px;height:29px; top:1px;right:0; background:transparent url(".$YUI_ROOT."assets/img/xp-tr.gif); position:absolute; }

			/* Style the body with the left border */
			#".$id.".yui-panel .bd { overflow:hidden; padding:10px; border:none; background:#FFF url(".$YUI_ROOT."assets/img/xp-brdr-lt.gif) repeat-y; margin:0 4px 0 0; }

			/* Style the footer with the bottom corner images */
			#".$id.".yui-panel .ft { background:transparent url(".$YUI_ROOT."assets/img/xp-ft.gif); font-size:11px; height:26px; padding:0px 10px; }
			#".$id.".yui-panel .ft span { line-height:22px; vertical-align:middle; }
			#".$id.".yui-panel .ft .bl { width:8px;height:26px; bottom:0;left:0; background:transparent url(".$YUI_ROOT."assets/img/xp-bl.gif); position:absolute; }
			#".$id.".yui-panel .ft .br { width:8px;height:26px; bottom:0;right:0; background:transparent url(".$YUI_ROOT."assets/img/xp-br.gif); position:absolute; }
				
</style>		";
}

function skin($type,$id){
	if($type == "winxp"){
		set_winxp($id);
	}else if($type == "aqua"){
		set_aqua($id);
	}
}
?>